﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pseudogenerator.Common.ViewModels.Core
{
    public static class CommandManagerHelper
    {
        class FakeCommandManager
            : ICommandManager
        {

            public void AddRequerySuggested(EventHandler value)
            {
                //Nada
            }

            public void RemoveRequerySuggested(EventHandler value)
            {
                //Nada
            }
        }

        public static ICommandManager customCommandManager = null;
        public static ICommandManager CustomCommandManager 
        { 
            get
            {
                if (customCommandManager == null)
                    customCommandManager = new FakeCommandManager();
                return customCommandManager;
            }
            set
            {
                customCommandManager = value;
            }
        }
    }
}
